using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Door:MonoBehaviour {

	public bool isClose;
	TileData doorOther;

	public void Init(TileData doorOther,bool isClose) {
		this.doorOther=doorOther;
		this.isClose=isClose;
	}

	public void SwitchState() {
		TilemapController.SetTile(transform.position,doorOther);
	}

}
